color scale: Sync style classes with GtkScale
authorMatthias Clasen <mclasen@redhat.com>
Thu, 19 May 2016 15:05:28 +0000 (11:05 -0400)
committerLapo Calamandrei <calamandrei@gmail.com>
Thu, 19 May 2016 16:09:24 +0000 (18:09 +0200)
We should use the same style classes here, to avoid theme
confusion.

gtk/gtkcoloreditor.c

index 6e37fce63a38eb445e0e1f122972e06090a3bb62..f45949c999a623b7b97f5720101df1954f10a1ef 100644 (file)
@@ -373,10 +373,10 @@ gtk_color_editor_init (GtkColorEditor *editor)
 
   if (gtk_widget_get_direction (editor->priv->h_slider) == GTK_TEXT_DIR_RTL)
     gtk_style_context_add_class (gtk_widget_get_style_context (editor->priv->h_slider),
-                                 GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE);
+                                 "marks-before");
   else
     gtk_style_context_add_class (gtk_widget_get_style_context (editor->priv->h_slider),
-                                 GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW);
+                                 "marks-after");
 
   /* Create the scaled popup adjustments manually here because connecting user data is not
    * supported by template GtkBuilder xml (it would be possible to set this up in the xml